package com.heima.test.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;


@Component
public class HelloJob {
//    @Scheduled(cron = "0/5 * * * * ?")
    @XxlJob("hellojob")
    public ReturnT eat(String params) {
        System.out.println("5秒中吃一次饭，我想成为一个胖子" + LocalDateTime.now().toString());
        return ReturnT.SUCCESS;
    }
}